const TokenKey = 'token'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}

export function	getLogins()
	{
		let token = getToken()
		// console.log(token)
		if (token) {
			return '白名单或者已登录';
		} else {
			uni.redirectTo({
				url: '/pages/loginB/loginB'
			});
		}
}
	